import request from '@/utils/request'

const prePath = '/core'

//获取机构权限模板
export function getOrgAuthTemplate(params) {
  return request({
    url: prePath + '/orgAuths/page',
    method: 'get',
    params,
  })
}

//新增或修改机构权限模板
export function modifyOrgAuthTemplate(data, method) {
  return request({
    url: prePath + '/orgAuths',
    method,
    data,
  })
}

//设置机构权限模板为默认
export function setOrgAuthDefault(data) {
  return request({
    url: prePath + '/orgAuths/setOrgAuthDefault',
    method: 'post',
    data,
  })
}

//删除机构权限模板
export function deleteOrgAuthTemplate(id) {
  return request({
    url: prePath + '/orgAuths/' + id,
    method: 'delete',
  })
}

//获取厂家分页信息
export function getBrandPage(params) {
  return request({
    url: prePath + '/brands/page',
    method: 'get',
    params,
  })
}

//获取厂家分页信息
export function getBrandAll(params) {
  return request({
    url: prePath + '/brands/all',
    method: 'get',
    params,
  })
}

//新增厂家
export function brandDetail(id) {
  return request({
    url: prePath + `/brands/${id}`,
    method: 'get',
  })
}

//新增厂家
export function createBrand(data) {
  return request({
    url: prePath + '/brands',
    method: 'post',
    data,
  })
}

//新增厂家
export function updateBrand(data) {
  return request({
    url: prePath + '/brands',
    method: 'put',
    data,
  })
}

//启用厂家
export function enableBrand(data) {
  return request({
    url: prePath + '/brands/enabled',
    method: 'post',
    data,
  })
}

//停用厂家
export function disableBrand(data) {
  return request({
    url: prePath + '/brands/disabled',
    method: 'post',
    data,
  })
}

//获取计量单位分页
export function getUnitPage(params) {
  return request({
    url: prePath + '/units/page',
    method: 'get',
    params,
  })
}

//获取所有计量单位
export function getUnitAll(params) {
  return request({
    url: prePath + '/units/all',
    method: 'get',
    params,
  })
}

//新增计量单位
export function createUnit(data) {
  return request({
    url: prePath + '/units',
    method: 'post',
    data,
  })
}

//修改计量单位
export function updateUnit(data) {
  return request({
    url: prePath + '/units',
    method: 'put',
    data,
  })
}

//获取仓库分页
export function getDepotPage(params) {
  return request({
    url: prePath + '/depots/page',
    method: 'get',
    params,
  })
}

//获取库存产品
export function getDepotProductById(id) {
  return request({
    url: prePath + '/depotProduct/' + id,
    method: 'get',
  })
}
//仓库产品删除
export function depotProductDel(data) {
  return request({
    url: prePath + '/depotProduct/delete',
    method: 'post',
    data,
  })
}

//仓库产品启用
export function depotProductEnabled(data) {
  return request({
    url: prePath + '/depotProduct/enabled',
    method: 'post',
    data,
  })
}

//仓库产品停用
export function depotProductDisabled(data) {
  return request({
    url: prePath + '/depotProduct/disabled',
    method: 'post',
    data,
  })
}

//获取仓库产品数据
export function getDepotProductAll(params) {
  return request({
    url: prePath + '/mappingDepotProduct/all',
    method: 'get',
    params,
  })
}

//获取仓库产品分页
export function getDepotProductPage(params) {
  return request({
    url: prePath + '/depotProduct/page',
    method: 'get',
    params,
  })
}

//更新仓库产品
export function updateDepotProduct(data) {
  return request({
    url: prePath + '/depotProduct/save',
    method: 'post',
    data,
  })
}

//获取所有仓库
export function getDepotAll(params) {
  return request({
    url: prePath + '/depots/all',
    method: 'get',
    params,
  })
}

//获取所有仓库(多个仓库类型取并集)
export function getDepotAllUseTypeIdOr(params) {
  return request({
    url: prePath + '/depots/allByUseTypeIdOr',
    method: 'get',
    params,
  })
}

//获取所有仓库
export function getDepotById(id) {
  return request({
    url: prePath + '/depots/' + id,
    method: 'get',
  })
}

//创建仓库
export function createDepot(data) {
  return request({
    url: prePath + '/depots',
    method: 'post',
    data,
  })
}

//修改仓库
export function updateDepot(data) {
  return request({
    url: prePath + '/depots',
    method: 'put',
    data,
  })
}

//停用仓库
export function disableDepot(data) {
  return request({
    url: prePath + '/depots/disabled',
    method: 'post',
    data,
  })
}

//启用仓库
export function enableDepot(data) {
  return request({
    url: prePath + '/depots/enabled',
    method: 'post',
    data,
  })
}

//仓库启用货位管理
export function enabledDepotCargoSpace(data) {
  return request({
    url: prePath + '/depots/enabledCargoSpace',
    method: 'post',
    data,
  })
}

//仓库启用货位管理
export function enabledLocationManage(data) {
  return request({
    url: prePath + '/depots/enabledLocationManage',
    method: 'post',
    data,
  })
}

//停用仓库
export function disableLocationManage(data) {
  return request({
    url: prePath + '/depots/disableLocationManage',
    method: 'post',
    data,
  })
}

//通过产品Id查询仓库
export function findDepotByProductId(params) {
  return request({
    url: prePath + '/depots/part',
    method: 'get',
    params,
  })
}

//获取证照分页
export function getLicensePage(params) {
  return request({
    url: prePath + '/licenses/page',
    method: 'get',
    params,
  })
}

//获取所有证照
export function getLicenseAll(params) {
  return request({
    url: prePath + '/licenses/all',
    method: 'get',
    params,
  })
}

//获取一个证照
export function selectLicenseDetail(id) {
  return request({
    url: prePath + '/licenses/' + id,
    method: 'get',
  })
}

//创建证照
export function createLicense(data) {
  return request({
    url: prePath + '/licenses',
    method: 'post',
    data,
  })
}

//修改证照
export function updateLicense(data) {
  return request({
    url: prePath + '/licenses',
    method: 'put',
    data,
  })
}

//启用证照
export function enableLicenses(data) {
  return request({
    url: prePath + '/licenses/enabled',
    method: 'post',
    data,
  })
}

//停用证照
export function disableLicenses(data) {
  return request({
    url: prePath + '/licenses/disabled',
    method: 'post',
    data,
  })
}

// 批量更新证照
export function batchUpdateLicense(data) {
  return request({
    url: prePath + '/licenses/batchUpdate',
    method: 'put',
    data,
  })
}

export function batchDeleteLicense(data) {
  return request({
    url: prePath + '/licenses',
    method: 'delete',
    data,
  })
}

//打印二维码
export function printQrCode(data) {
  return request({
    url: prePath + '/coreAsset/printQrCode',
    method: 'post',
    data,
  })
}

//产品分页
export function getProductPage(params) {
  return request({
    url: prePath + '/products/page',
    method: 'get',
    params,
  })
}

//产品分页 供应商弹出框专用
export function getPageByQueryExcludeSupplier(params) {
  return request({
    url: prePath + '/products/selectPageByQueryExcludeSupplier',
    method: 'get',
    params,
  })
}

//产品分页
export function getProductCustomizeList(data) {
  return request({
    url: prePath + '/products/customizeList/page',
    method: 'post',
    data,
  })
}

//产品分页
export function getProductWithOtherCustomizeList(data) {
  return request({
    url: prePath + '/products/withOther/customizeList/page',
    method: 'post',
    data,
  })
}

//产品导出
export function exportProduct(params) {
  return request({
    url: prePath + '/products/exportExcel',
    method: 'get',
    params,
    responseType: 'blob',
  })
}

//根据id获取一条产品数据
export function getProductById(id) {
  return request({
    url: prePath + '/products/' + id,
    method: 'get',
  })
}

//根据id获取一条资产数据
export function getAssetById(id) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/' + id,
    method: 'get',
  })
}

//产品新增
export function createProduct(data) {
  return request({
    url: prePath + '/products',
    method: 'post',
    data,
  })
}
// 产品保存 校验
export function validateNetworkInfoDuplicated(data) {
  return request({
    url: prePath + '/products/validateNetworkInfoDuplicated',
    method: 'post',
    data,
  })
}

//资产新增
export function createAsset(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard' + (data.countNum ? '/' + data.countNum : ''),
    method: 'post',
    data,
  })
}
export function createAssetAndSave(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/saveAndSubmit' + (data.countNum ? '/' + data.countNum : ''),
    method: 'post',
    data,
  })
}

//资产档案-财务信息取消
export function financeCancel(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/financeCancel',
    method: 'post',
    data,
  })
}

//资产档案-财务信息批准
export function financeRatify(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/financeRatify',
    method: 'post',
    data,
  })
}

//资产档案-财务信息驳回
export function financeReject(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/financeReject',
    method: 'post',
    data,
  })
}

//资产档案-财务信息撤销
export function financeRevoke(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/financeRevoke',
    method: 'post',
    data,
  })
}

//资产档案-财务信息提交
export function financeSubmit(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/financeSubmit',
    method: 'post',
    data,
  })
}

//资产档案-财务信息登记-保存
export function financeRegister(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/financeRegister',
    method: 'post',
    data,
  })
}

//资产卡片-修改-保存
export function financeUpdate(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/financeUpdate',
    method: 'post',
    data,
  })
}

//资产档案-信息补录
export function updateRecording(data) {
  return request({
    url: prePath + `/asset/assetManage/assetCard/updateRecording`,
    method: 'post',
    data,
  })
}

//资产档案-维保信息保存
export function updateMaintenanceRecording(data) {
  return request({
    url: prePath + `/asset/assetManage/assetCard/updateMaintenanceRecording`,
    method: 'post',
    data,
  })
}

//资产档案-计量信息保存
export function updateMeteringRecording(data) {
  return request({
    url: prePath + `/asset/assetManage/assetCard/updateMeteringRecording`,
    method: 'post',
    data,
  })
}

//资产卡片-打印资产卡片
export function printFinanceAssetCode(data) {
  return request({
    url: prePath + `/asset/assetManage/assetCard/financeAssetCode/print`,
    method: 'post',
    data,
  })
}

//产品修改
export function updateAsset(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard',
    method: 'put',
    data,
  })
}

//产品修改
export function updateProduct(data) {
  return request({
    url: prePath + '/products/byPost',
    method: 'post',
    data,
  })
}

//启用产品
export function enableProduct(data) {
  return request({
    url: prePath + '/products/enabled',
    method: 'post',
    data,
  })
}

//停用产品
export function disableProduct(data) {
  return request({
    url: prePath + '/products/disabled',
    method: 'post',
    data,
  })
}

//上架产品
export function putShelfProduct(data) {
  return request({
    url: prePath + '/products/putShelf',
    method: 'post',
    data,
  })
}

//下架产品
export function downShelfProduct(data) {
  return request({
    url: prePath + '/products/downShelf',
    method: 'post',
    data,
  })
}

// 批量更新产品
export function batchUpdateProduct(data) {
  return request({
    url: prePath + '/products/batchUpdate/byPost',
    method: 'post',
    data,
  })
}

export function copyToaddProduct(data) {
  return request({
    url: prePath + '/products/copyToadd',
    method: 'post',
    data,
  })
}

// 产品分类树
export function getProductCategoryTree() {
  return request({
    url: prePath + '/productCategory/tree',
    method: 'get',
  })
}

// 分页查询产品分类
export function productCategoryPage(params) {
  return request({
    url: prePath + '/productCategory/categoryPage',
    method: 'get',
    params,
  })
}

// 查询产品分类详情
export function getProductCategoryDetails(params) {
  return request({
    url: prePath + '/productCategory/' + params,
    method: 'get',
  })
}

// 新增产品分类
export function addProductCategory(data) {
  return request({
    url: prePath + '/productCategory',
    method: 'post',
    data,
  })
}

// 删除产品分类
export function deleteProductCategoryOne(params) {
  return request({
    url: prePath + '/productCategory/' + params,
    method: 'delete',
  })
}

// 更新产品分类
export function updateProductCategory(data) {
  return request({
    url: prePath + '/productCategory',
    method: 'put',
    data,
  })
}

// 获取分类产品分页查询
export function getProductCategoryPage(params) {
  return request({
    url: prePath + '/productCategory/products/page',
    method: 'get',
    params,
  })
}

// 获取没在该下的分类产品分页查询
export function getProductCategoryExcludePage(params) {
  return request({
    url: prePath + '/productCategory/products/exclude/page',
    method: 'get',
    params,
  })
}

export function pullHisProductCategory() {
  return request({
    url: prePath + '/productCategory/getRemoteHisViewCategory',
    method: 'get',
  })
}

// 获取证照审核分页
export function getProductCheckPage(params) {
  return request({
    url: prePath + '/coreProductCheck/page',
    method: 'get',
    params,
  })
}

//获取产品证照明细
export function getProductCheck(id) {
  return request({
    url: prePath + `/coreProductCheck/${id}`,
    method: 'get',
  })
}

//产品修改
export function updateProductCheck(data) {
  return request({
    url: prePath + '/coreProductCheck',
    method: 'put',
    data,
  })
}
//产品新增-产品入院
export function addHospitalProductCheck(data) {
  return request({
    url: prePath + '/coreProductCheck/inHospital/add',
    method: 'post',
    data,
  })
}
export function validateNetworkInfoDuplicatedByCheck(data) {
  return request({
    url: prePath + '/coreProductCheck/validateNetworkInfoDuplicated',
    method: 'post',
    data,
  })
}
export function saveAndSubmitHospitalProductCheck(data) {
  return request({
    url: prePath + '/coreProductCheck/inHospital/saveAndSubmit',
    method: 'post',
    data,
  })
}
//产品修改-产品入院
export function updateHospitalProductCheck(data) {
  return request({
    url: prePath + '/coreProductCheck/inHospital/update',
    method: 'put',
    data,
  })
}
//产品提交-产品入院
export function submitHospitalProductCheck(data) {
  return request({
    url: prePath + '/coreProductCheck/submit',
    method: 'post',
    data,
  })
}
//产品撤回-产品入院
export function revokeHospitalProductCheck(data) {
  return request({
    url: prePath + '/coreProductCheck/inHospital/revoke',
    method: 'post',
    data,
  })
}
//产品删除-产品入院
export function deleteHospitalProductCheck(data) {
  return request({
    url: prePath + '/coreProductCheck/inHospital/delete',
    method: 'delete',
    data,
  })
}

//审核产品
export function productCheckAudit(data) {
  return request({
    url: prePath + '/coreProductCheck/audit',
    method: 'post',
    data,
  })
}
// 撤回
export function productCheckRevoke(data) {
  return request({
    url: prePath + '/coreProductCheck/revoke',
    method: 'post',
    data,
  })
}
//确认产品
export function productCheckConfirm(data) {
  return request({
    url: prePath + '/coreProductCheck/confirm',
    method: 'post',
    data,
  })
}

//拒绝产品
export function productCheckRefuse(data) {
  return request({
    url: prePath + '/coreProductCheck/refuse',
    method: 'post',
    data,
  })
}
//驳回产品
export function productCheckReject(data) {
  return request({
    url: prePath + '/coreProductCheck/reject',
    method: 'post',
    data,
  })
}
//批准产品
export function productCheckApproved(data) {
  return request({
    url: prePath + '/coreProductCheck/approved',
    method: 'post',
    data,
  })
}
//拒绝产品（新 加了 拒绝理由）
export function productCheckRefuseWithReason(data) {
  return request({
    url: prePath + '/coreProductCheck/refuseWithReason',
    method: 'post',
    data,
  })
}

//获取供应商分页信息
export function getSupplierPage(params) {
  return request({
    url: prePath + '/suppliers/page',
    method: 'get',
    params,
  })
}

//获取供应商分页信息-自定义
export function getsupplierscustomizeListPages(data) {
  return request({
    url: prePath + '/suppliers/customizeList/page',
    method: 'post',
    data,
  })
}

//获取全部供应商
export function getSupplierAll(params) {
  return request({
    url: prePath + '/suppliers/all',
    method: 'get',
    params,
  })
}

//新增供应商
export function createSupplier(data) {
  return request({
    url: prePath + '/suppliers',
    method: 'post',
    data,
  })
}

//更新供应商
export function updateSupplier(data) {
  return request({
    url: prePath + '/suppliers',
    method: 'put',
    data,
  })
}

//删除供应商
export function deleteSupplier(data) {
  return request({
    url: prePath + '/suppliers',
    method: 'delete',
    data,
  })
}

//获取部门树
export function getDeptTrees(params) {
  return request({
    url: prePath + '/depts/trees',
    method: 'get',
    params,
  })
}

//获取部门通过id
export function getDept(params) {
  return request({
    url: prePath + '/depts/' + params,
    method: 'get',
  })
}

//获取部门分页
export function getDeptPage(params) {
  return request({
    url: prePath + '/depts/page',
    method: 'get',
    params,
  })
}

//获取部门全部
export function getDeptAll(params) {
  return request({
    url: prePath + '/depts/all',
    method: 'get',
    params,
  })
}

//创建部门
export function createDept(data) {
  return request({
    url: prePath + '/depts',
    method: 'post',
    data,
  })
}

//创建部门 并返回部门id
export function createDeptWithPrimaryKey(data) {
  return request({
    url: prePath + '/depts/withPrimaryKey',
    method: 'post',
    data,
  })
}

//获取部门详情
export function getDeptDetail(id) {
  return request({
    url: prePath + '/depts/' + id,
    method: 'get',
  })
}

//更新部门
export function updateDept(data) {
  return request({
    url: prePath + '/depts',
    method: 'put',
    data,
  })
}

//删除部门
export function deleteDept(data) {
  return request({
    url: prePath + '/depts',
    method: 'delete',
    data,
  })
}

//获取部门产品分页
export function getDeptProductPage(params) {
  return request({
    url: prePath + '/products/depts/page',
    method: 'get',
    params,
  })
}

//获取部门产品所有
export function getDeptProductAll(params) {
  return request({
    url: prePath + '/products/depts/all',
    method: 'get',
    params,
  })
}

//删除部门产品
export function delDeptProduct(data) {
  return request({
    url: prePath + '/products/depts',
    method: 'delete',
    data,
  })
}

//添加部门产品
export function updateDeptProduct(data) {
  return request({
    url: prePath + '/products/depts/save',
    method: 'post',
    data,
  })
}

//获取收货地址分页
export function getReceiveAddressPage(params) {
  return request({
    url: prePath + '/receiveAddress/page',
    method: 'get',
    params,
  })
}

//获取收货地址
export function getReceiveAddressAll(params) {
  return request({
    url: prePath + '/receiveAddress/all',
    method: 'get',
    params,
  })
}

//新增收货地址
export function createReceiveAddress(data) {
  return request({
    url: prePath + '/receiveAddress',
    method: 'post',
    data,
  })
}

//更新收货地址
export function updateReceiveAddress(data) {
  return request({
    url: prePath + '/receiveAddress',
    method: 'put',
    data,
  })
}

// 批量删除收货地址
export function deleteReceiveAddress(data) {
  return request({
    url: prePath + '/receiveAddress',
    method: 'delete',
    data,
  })
}

//获取供应商产品
export function getSupplierProductPage(params) {
  return request({
    url: prePath + '/supplierProducts/page',
    method: 'get',
    params,
  })
}
//导出供应商产品
export function exportSupplierProduct(id) {
  return request({
    url: prePath + '/supplierProducts/' + id + '/exportExcel',
    method: 'get',
    responseType: 'blob',
  })
}

//导出供应商产品
export function exportSupplierProductNew(id) {
  return request({
    url: prePath + '/supplierProducts/' + id + '/exportExcelProduct',
    method: 'get',
    responseType: 'blob',
  })
}

export function exportMaintenanceProductNew(id) {
  return request({
    url: prePath + '/supplierProducts/' + id + '/exportExcelDevice',
    method: 'get',
    responseType: 'blob',
  })
}

//获取供应商产品 若存在默认供应商 则优先显示有默认供应商的供货目录
export function getDefaultSupplierProductPage(params) {
  return request({
    url: prePath + '/supplierProducts/pageForPurchOrder',
    method: 'get',
    params,
  })
}

//获取供应商产品
export function getSupplierProductAll(params) {
  return request({
    url: prePath + '/supplierProducts/all',
    method: 'get',
    params,
  })
}

//创建供应商产品
export function createSupplierProduct(data) {
  return request({
    url: prePath + '/supplierProducts',
    method: 'post',
    data,
  })
}

//批量创建供应商产品
export function batchCreateSupplierProduct(data) {
  return request({
    url: prePath + '/supplierProducts/batchInsert',
    method: 'post',
    data,
  })
}
//根据供应商选择产品并切换默认供应商
export function switchSupplierProduct(data) {
  return request({
    url: prePath + '/supplierProducts/switchSupplier',
    method: 'post',
    data,
  })
}
//删除供应商产品
export function deleteSupplierProduct(data) {
  return request({
    url: prePath + '/supplierProducts',
    method: 'delete',
    data,
  })
}

//更新供应商产品
export function updateSupplierProduct(data) {
  return request({
    url: prePath + '/supplierProducts',
    method: 'put',
    data,
  })
}

//设置默认供应商
export function setSupplierProductDefault(id) {
  return request({
    url: prePath + `/supplierProducts/default/${id}`,
    method: 'post',
  })
}

//批量添加系统设置
export function batchUpdateCoreSystemConfig(data) {
  return request({
    url: prePath + '/systemConfig/batchUpdate',
    method: 'put',
    data,
  })
}

//获取全部系统设置
export function getCoreSystemConfigAll(params) {
  return request({
    url: prePath + '/systemConfig/all',
    method: 'get',
    params,
  })
}

//获取全部系统设置
export function getCoreSystemConfigGetConfigValue(params) {
  return request({
    url: prePath + '/systemConfig/getConfigValue',
    method: 'get',
    params,
  })
}

//批量更新业务资源
export function getCoreResourcesAll(params) {
  return request({
    url: prePath + '/resources/all',
    method: 'get',
    params,
  })
}

//批量更新业务资源
export function batchUpdateCoreResources(data) {
  return request({
    url: prePath + '/resources/batchUpdate',
    method: 'put',
    data,
  })
}

//根据实体类删除数据
export function deleteCoreResourcesByEntity(data) {
  return request({
    url: prePath + '/resources/delete',
    method: 'delete',
    data,
  })
}

//获取合同分页
export function getContractPage(params) {
  return request({
    url: prePath + '/contract/page',
    method: 'get',
    params,
  })
}

//获取合同分页
export function getContract(id) {
  return request({
    url: prePath + `/contract/${id}`,
    method: 'get',
  })
}

//确认合同
export function contractConfirm(data) {
  return request({
    url: prePath + '/contract/confirm',
    method: 'post',
    data,
  })
}

//拒绝合同
export function contractRefuse(data) {
  return request({
    url: prePath + '/contract/refuse',
    method: 'post',
    data,
  })
}

//创建合同
export function createContract(data) {
  return request({
    url: prePath + '/contract',
    method: 'post',
    data,
  })
}

//更新合同
export function updateContract(data) {
  return request({
    url: prePath + '/contract',
    method: 'put',
    data,
  })
}

//删除合同
export function deleteContract(data) {
  return request({
    url: prePath + '/contract',
    method: 'delete',
    data,
  })
}

// 分页查询装备品牌
export function getEquipmentBrandPage(params) {
  return request({
    url: prePath + '/equipmentBrand/page',
    method: 'get',
    params,
  })
}

// 查询所有装备品牌
export function getEquipmentBrandAll(params) {
  return request({
    url: prePath + '/equipmentBrand/all',
    method: 'get',
    params,
  })
}

// 装备品牌查询详情
export function getEquipmentBrandDetails(params) {
  return request({
    url: prePath + '/equipmentBrand/' + params,
    method: 'get',
  })
}

// 装备品牌更新数据
export function updateEquipmentBrand(data) {
  return request({
    url: prePath + '/equipmentBrand',
    method: 'put',
    data,
  })
}

// 装备品牌新增数据
export function addEquipmentBrand(data) {
  return request({
    url: prePath + '/equipmentBrand',
    method: 'post',
    data,
  })
}

// 装备品牌批量停用
export function equipmentBrandDisables(data) {
  return request({
    url: prePath + '/equipmentBrand/disables',
    method: 'put',
    data,
  })
}

// 装备品牌批量启用
export function equipmentBrandEnables(data) {
  return request({
    url: prePath + '/equipmentBrand/enables',
    method: 'put',
    data,
  })
}

// 编码管理分页查询
export function getCoreCodePage(params) {
  return request({
    url: prePath + '/coreCode/page',
    method: 'get',
    params,
  })
}

// 编码管理新增
export function addCoreCode(data) {
  return request({
    url: prePath + '/coreCode',
    method: 'post',
    data,
  })
}

// 编码管理更新一条
export function updateCoreCode(data) {
  return request({
    url: prePath + '/coreCode',
    method: 'put',
    data,
  })
}

// 编码管理查询详情
export function getCoreCodeDetails(params) {
  return request({
    url: prePath + '/coreCode/' + params,
    method: 'get',
  })
}

// 编码管理启用停用
export function coreCodeChangeStatus(data) {
  return request({
    url: prePath + '/coreCode/changeStatus',
    method: 'post',
    data,
  })
}

// 获取设备分类树
export function getDeviceCategoryTrees() {
  return request({
    url: prePath + '/deviceCategory/trees',
    method: 'get',
  })
}

// 查询设备分类详情
export function getDeviceCategoryDetails(params) {
  return request({
    url: prePath + '/deviceCategory/' + params,
    method: 'get',
  })
}

// 通过ID删除设备
export function deleteDeviceCategoryById(id) {
  return request({
    url: prePath + '/deviceCategory/' + id,
    method: 'delete',
  })
}

// 设备分类更新一条数据
export function updateDeviceCategory(data) {
  return request({
    url: prePath + '/deviceCategory',
    method: 'put',
    data,
  })
}

// 设备分类新增分类
export function addDeviceCategory(data) {
  return request({
    url: prePath + '/deviceCategory',
    method: 'post',
    data,
  })
}

// 设备管理列表分页查询
export function getCoreDevicePage(params) {
  return request({
    url: prePath + '/coreDevice/page',
    method: 'get',
    params,
  })
}

// 分页查询未分类设备
export function getCoreDeviceSelectPage(params) {
  return request({
    url: prePath + '/coreDevice/selectPage',
    method: 'get',
    params,
  })
}

// 设备管理新增设备
export function addCoreDevicePage(data) {
  return request({
    url: prePath + '/coreDevice',
    method: 'post',
    data,
  })
}

// 设备管理更新设备
export function updateCoreDevicePage(data) {
  return request({
    url: prePath + '/coreDevice',
    method: 'put',
    data,
  })
}

// 设备管理批量启用
export function coreDeviceEnables(data) {
  return request({
    url: prePath + '/coreDevice/enables',
    method: 'put',
    data,
  })
}

// 设备管理批量停用
export function coreDeviceDisables(data) {
  return request({
    url: prePath + '/coreDevice/disables',
    method: 'put',
    data,
  })
}

// 根据分类分页查询设备关系
export function getCoreDeviceCategoryPage(params) {
  return request({
    url: prePath + '/coreDevice/category/page',
    method: 'get',
    params,
  })
}

// 分页查询未分类设备
export function getUnRelatedCategory(params) {
  return request({
    url: prePath + '/coreDevice/unRelatedCategory/page',
    method: 'get',
    params,
  })
}

// 设备管理获取设备详情
export function getCoreDeviceDetails(params) {
  return request({
    url: prePath + '/coreDevice/' + params,
    method: 'get',
  })
}

// 获取各类编码是否有启用编码
export function getCoreCodeStatus(params) {
  return request({
    url: prePath + '/coreCode/getStatus',
    method: 'get',
    params,
  })
}

// 资产管理分页查询
export function getAssetPage(params) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/page',
    method: 'get',
    params,
  })
}

//获取一个证照
export function selectAssetDetail(id) {
  return request({
    url: prePath + '/coreAsset/' + id,
    method: 'get',
  })
}

// 添加资产管理
export function addAsset(data) {
  return request({
    url: prePath + '/coreAsset',
    method: 'post',
    data,
  })
}

// 获取证照审核分页
export function getLicenseCheckPage(params) {
  return request({
    url: prePath + '/licenseCheck/page',
    method: 'get',
    params,
  })
}

// 获取厂家审核分页
export function getBrandCheckPage(params) {
  return request({
    url: prePath + '/brandCheck/page',
    method: 'get',
    params,
  })
}

//获取审核证照明细
export function getLicenseCheck(id) {
  return request({
    url: prePath + `/licenseCheck/${id}`,
    method: 'get',
  })
}

//获取审核证照明细
export function getBrandCheck(id) {
  return request({
    url: prePath + `/brandCheck/${id}`,
    method: 'get',
  })
}

//确认证照
export function licenseConfirm(data) {
  return request({
    url: prePath + '/licenseCheck/confirm',
    method: 'post',
    data,
  })
}

//拒绝证照
export function licenseRefuse(data) {
  return request({
    url: prePath + '/licenseCheck/refuse',
    method: 'post',
    data,
  })
}
//拒绝证照(新 加了 拒绝理由)
export function licenseRefuseWithReason(data) {
  return request({
    url: prePath + '/licenseCheck/refuseWithReason',
    method: 'post',
    data,
  })
}

// 获取证照审核分页
export function getLicensePageFlow(params) {
  return request({
    url: prePath + '/licenseCheck/page',
    method: 'get',
    params,
  })
}

// 批准证照审核
export function licenseApproved(data) {
  return request({
    url: prePath + '/licenseCheck/approved',
    method: 'post',
    data,
  })
}

// 驳回证照审核
export function licenseReject(data) {
  return request({
    url: prePath + '/licenseCheck/reject',
    method: 'post',
    data,
  })
}

//确认证照
export function brandConfirm(data) {
  return request({
    url: prePath + '/brandCheck/confirm',
    method: 'post',
    data,
  })
}
export function brandApproved(data) {
  return request({
    url: prePath + '/brandCheck/approved',
    method: 'post',
    data,
  })
}
export function brandCheckReject(data) {
  return request({
    url: prePath + '/brandCheck/reject',
    method: 'post',
    data,
  })
}


//拒绝证照
export function brandRefuse(data) {
  return request({
    url: prePath + '/brandCheck/refuse',
    method: 'post',
    data,
  })
}
export function brandRefuseWithReason(data) {
  return request({
    url: prePath + '/brandCheck/refuseWithReason',
    method: 'post',
    data,
  })
}

//获取部门用户树
export function deptUserTrees(params) {
  return request({
    url: prePath + '/depts/deptUserTrees',
    method: 'get',
    params,
  })
}

// 获取机构信息
export function getOrgInformation(params) {
  return request({
    url: prePath + '/orgInformation/' + params,
    method: 'get',
  })
}

// 更新机构信息
export function updateOrgInformation(data) {
  return request({
    url: prePath + '/orgInformation',
    method: 'post',
    data,
  })
}

//启用设备资产查询
export function enabledDevicePage(params) {
  return request({
    url: prePath + '/coreAsset/enabledDevicePage',
    method: 'get',
    params,
  })
}

//导出资产Excel
export function coreAssetExcel(params) {
  return request({
    url: prePath + '/coreAsset/excel',
    method: 'get',
    responseType: 'blob',
    params,
  })
}

//打印资产
export function coreAssetPrint(params) {
  return request({
    url: prePath + '/coreAsset/print',
    method: 'get',
    params,
  })
}

//温湿度采集卡类型carate
//新增一条数据
export function carateCollectCardType(data) {
  return request({
    url: prePath + '/collectCardType',
    method: 'post',
    data,
  })
}

//修改一条数据
export function putCollectCardType(data) {
  return request({
    url: prePath + '/collectCardType',
    method: 'put',
    data,
  })
}

//删除多条数据
export function delCollectCardType(data) {
  return request({
    url: prePath + '/collectCardType',
    method: 'delete',
    data,
  })
}

//删除单条数据
export function delCollectCardTypeById(id) {
  return request({
    url: prePath + '/collectCardType' + id,
    method: 'delete',
  })
}

//根据{id}获取一条数据
export function getCollectCardTypeById(id) {
  return request({
    url: prePath + '/collectCardType/' + id,
    method: 'get',
  })
}

//获取分页数据
export function getCollectCardType(params) {
  return request({
    url: prePath + '/collectCardType/page',
    method: 'get',
    params,
  })
}

//设置默认仓库
export function setDepotsDefault(data) {
  return request({
    url: prePath + '/depots/asDefault',
    method: 'post',
    data,
  })
}

//获取默认仓库
export function getDepotsDefault() {
  return request({
    url: prePath + '/depots/selectDefault',
    method: 'get',
  })
}

//产品查询
export function getProductLocationVo(data) {
  return request({
    url: prePath + `/products/search`,
    method: 'post',
    data,
  })
}

//产品原厂码规则
export function getCoreProductRule(id) {
  return request({
    url: prePath + '/coreProductRule/pid/' + id,
    method: 'get',
  })
}

//gs1扫描接口
export function postPrintQrCodeScan(data) {
  return request({
    url: prePath + '/printQrCode/scan',
    method: 'post',
    data,
  })
}

//gs1扫描接口-入库
export function postPrintQrCodeScanForInBound(data) {
  return request({
    url: prePath + '/printQrCode/scanForInBound',
    method: 'post',
    data,
  })
}

//打印二维码接口
export function postPrintQrCodePrint(data) {
  return request({
    url: prePath + '/printQrCode/reprint',
    method: 'post',
    data,
  })
}

// 单条补打条码
export function getPrintQRProductSingle(id) {
  return request({
    url: prePath + '/printQrCode/depot/' + id,
    method: 'get',
  })
}

//批量补打条码
export function postPrintQRProductBatch(data) {
  return request({
    url: prePath + '/printQrCode/depot',
    method: 'post',
    data,
  })
}

//条码生成
export function postGenerateToHis(data) {
  return request({
    url: prePath + '/printQrCode/generateToHis',
    method: 'post',
    data,
  })
}

//领用出库打印二维码
export function printQrCodeExt(extId) {
  return request({
    url: prePath + `/printQrCode/ext/${extId}`,
    method: 'get',
  })
}

// 产品批量打印产品码
export function productCodePrint(data) {
  return request({
    url: prePath + '/products/productCode/print',
    method: 'post',
    data,
  })
}

// 产品批量打印资产码
export function assetCodePrint(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/assetCode/print',
    method: 'post',
    data,
  })
}

// 产品打印库存产品分页查询
export function productsStorageProductPage(params) {
  return request({
    url: prePath + '/products/storageProduct/page',
    method: 'get',
    params,
  })
}

// 产品码整库打印
export function wholeDepotProductCodePrint(data) {
  return request({
    url: prePath + '/products/wholeDepotProductCode/print',
    method: 'post',
    data,
  })
}

//库存盘点主盘点单和子盘点单的添加产品弹框查询接口
export function productsNotOriginPage(params) {
  return request({
    url: prePath + '/products/notOrigin/page',
    method: 'get',
    params,
  })
}

export function getAssetCardCustomizePage(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/customizeList/page',
    method: 'post',
    data,
  })
}

export function getAssetCardAll(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/customizeList/all',
    method: 'post',
    data,
  })
}

export function getAssetCardCustomizeGroups(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/customizeGroups',
    method: 'post',
    data,
  })
}

export function assetCardFile(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/import/file',
    method: 'post',
    data,
  })
}

export function assetCardVaildateFile(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/import/vaildateFile',
    method: 'post',
    data,
  })
}
export function submitAssetCardOrder(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/submit',
    method: 'post',
    data,
  })
}
// 流程审批
export function flowSubmitAssetCardOrder(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/flowSubmit',
    method: 'post',
    data,
  })
}

export function revokeAssetCardOrder(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/revoke',
    method: 'post',
    data,
  })
}

// 批准
export function ratifyAssetCardOrder(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/approved',
    method: 'post',
    data,
  })
}
// 销审
export function cancelAuditAssetCardOrder(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/cancelAudit',
    method: 'post',
    data,
  })
}
// 拒绝
export function refuseAssetCardOrder(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/refuse',
    method: 'post',
    data,
  })
}
// 驳回
export function rejectAssetCardOrder(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/reject',
    method: 'post',
    data,
  })
}

export function removeAssetCardOrder(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard',
    method: 'delete',
    data,
  })
}

//导出资产卡片
export function exportAssetCard(data) {
  return request({
    url: prePath + `/asset/assetManage/assetCard/excel`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

//导出资产卡片
export function exportAssetCardDetail(data) {
  return request({
    url: prePath + `/asset/assetManage/assetCard/detailExcel`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

//资产卡片获取一条打印数据
export function getAssetCardPrint(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/print',
    method: 'post',
    data,
  })
}

//资产折旧列表详情打印 单据列表打印
export function assetCardScan(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/scan',
    method: 'post',
    data,
  })
}

export function financeAssetCardScan(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/financeScan',
    method: 'post',
    data,
  })
}

export function scanForOriginal(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/scanForOriginal',
    method: 'post',
    data,
  })
}

//资产折旧列表详情打印 单据列表打印
export function assetCardScanForDepreciation(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/scanForDepreciation',
    method: 'post',
    data,
  })
}

/**维保商**/

//获取维保商分页信息
export function getMaintenancePage(params) {
  return request({
    url: prePath + '/maintenance/page',
    method: 'get',
    params,
  })
}

//获取全部维保商
export function getMaintenanceAll(params) {
  return request({
    url: prePath + '/maintenance/all',
    method: 'get',
    params,
  })
}

//新增维保商
export function createMaintenance(data) {
  return request({
    url: prePath + '/maintenance',
    method: 'post',
    data,
  })
}

//更新维保商
export function updateMaintenance(data) {
  return request({
    url: prePath + '/maintenance',
    method: 'put',
    data,
  })
}

//删除维保商
export function deleteMaintenance(data) {
  return request({
    url: prePath + '/maintenance',
    method: 'delete',
    data,
  })
}

/***维保商结束**/

/**维保商产品**/

//获取维保商产品
export function getMaintenanceProductPage(params) {
  return request({
    url: prePath + '/maintenanceProduct/page',
    method: 'get',
    params,
  })
}

//获取维保商产品
export function getMaintenanceProductAll(params) {
  return request({
    url: prePath + '/maintenanceProduct/all',
    method: 'get',
    params,
  })
}

//批量创建维保商产品
export function batchCreateMaintenanceProduct(data) {
  return request({
    url: prePath + '/maintenanceProduct/batchInsert',
    method: 'post',
    data,
  })
}

//删除维保商产品
export function deleteMaintenanceProduct(data) {
  return request({
    url: prePath + '/maintenanceProduct',
    method: 'delete',
    data,
  })
}

//导出维保商产品
export function exportMaintenanceProduct(id) {
  return request({
    url: prePath + '/maintenanceProduct/' + id + '/exportExcel',
    method: 'get',
    responseType: 'blob',
  })
}

//设置默认维保商
export function setMaintenanceProductDefault(id) {
  return request({
    url: prePath + `/maintenanceProduct/default/${id}`,
    method: 'post',
  })
}

/**维保商产品结束**/

//巡检项目自定义查询
export function getPatrolItemCustomizeListPage(data) {
  return request({
    url: prePath + '/patrolItem/customizeList/page',
    method: 'post',
    data,
  })
}

//巡检项目查询
export function getPatrolItemById(id) {
  return request({
    url: prePath + '/patrolItem/' + id,
    method: 'get',
  })
}

export function removePatrolItem(data) {
  return request({
    url: prePath + '/patrolItem',
    method: 'delete',
    data,
  })
}

//巡检项目新增
export function createPatrolItem(data) {
  return request({
    url: prePath + '/patrolItem',
    method: 'post',
    data,
  })
}

//修改巡检项目
export function updatePatrolItem(data) {
  return request({
    url: prePath + '/patrolItem',
    method: 'put',
    data,
  })
}

//巡检路线自定义查询
export function getPatrolRouteCustomizeListPage(data) {
  return request({
    url: prePath + '/patrolRoute/customizeList/page',
    method: 'post',
    data,
  })
}

//巡检路线查询
export function getPatrolRouteById(id) {
  return request({
    url: prePath + '/patrolRoute/' + id,
    method: 'get',
  })
}

//创建巡检路线
export function createPatrolRoute(data) {
  return request({
    url: prePath + '/patrolRoute',
    method: 'post',
    data,
  })
}

export function removePatrolRoute(data) {
  return request({
    url: prePath + '/patrolRoute',
    method: 'delete',
    data,
  })
}

//修改巡检路线
export function updatePatrolRoute(data) {
  return request({
    url: prePath + '/patrolRoute',
    method: 'put',
    data,
  })
}

//巡检点自定义查询
export function getPatrolAreaCustomizeListPage(data) {
  return request({
    url: prePath + '/patrolArea/customizeList/page',
    method: 'post',
    data,
  })
}

//巡检点查询
export function getPatrolAreaById(id) {
  return request({
    url: prePath + '/patrolArea/' + id,
    method: 'get',
  })
}

export function assetCustomizeListPage(data) {
  return request({
    url: prePath + '/patrolArea/assetCustomizeListPage/page',
    method: 'post',
    data,
  })
}

//创建巡检点
export function createPatrolArea(data) {
  return request({
    url: prePath + '/patrolArea',
    method: 'post',
    data,
  })
}

export function removePatrolArea(data) {
  return request({
    url: prePath + '/patrolArea',
    method: 'delete',
    data,
  })
}

//修改巡检点
export function updatePatrolArea(data) {
  return request({
    url: prePath + '/patrolArea',
    method: 'put',
    data,
  })
}

//证照图片校验
export function licensesVaildateFile(data) {
  return request({
    url: prePath + '/licenses/import/vaildateFile',
    method: 'post',
    data,
  })
}
//证照图片上传
export function licensesFile(data) {
  return request({
    url: prePath + '/licenses/import/file',
    method: 'post',
    data,
  })
}
export function productsFile(data) {
  return request({
    url: prePath + '/products/import/annexesFile',
    method: 'post',
    data,
  })
}
//厂家图片校验
export function brandVaildateFile(data) {
  return request({
    url: prePath + '/brands/import/vaildateFile',
    method: 'post',
    data,
  })
}
//厂家图片上传
export function brandFile(data) {
  return request({
    url: prePath + '/brands/import/file',
    method: 'post',
    data,
  })
}

//手术包选择产品分页
export function getCustomizeListWithAllSupplierList(data) {
  return request({
    url: prePath + '/products/customizeListWithAllSupplier/page',
    method: 'post',
    data,
  })
}

//获取产品列表
export function getProductsPage(data) {
  return request({
    url: prePath + '/products/customizeList/page',
    method: 'post',
    data,
  })
}
//产品导出
export function productsExcel(data) {
  return request({
    url: prePath + '/products/excel',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//厂家分页
export function getSupplierBrandPage(params) {
  return request({
    url: prePath + '/supplierProducts/selectBrandPageBySupplier',
    method: 'get',
    params,
  })
}
//申购模板刷新数据
export function refreshData(data) {
  return request({
    url: prePath + '/products/refreshAttr',
    method: 'post',
    data,
  })
}

export function financeAdjustAssetCard(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/financeAdjust',
    method: 'post',
    data,
  })
}
export function specialDeleteAssetCard(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/specialDelete',
    method: 'post',
    data,
  })
}
export function downloadFileBrands(params) {
  return request({
    url: prePath + '/brands/download/file',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
export function downloadFileLicenses(params) {
  return request({
    url: prePath + '/licenses/download/file',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
export function downloadFileAssetCard(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/customizeList/download/file',
    method: 'post',
    responseType: 'blob',
    data,
  })
}
//设置资产默认仓库
export function setAssetDepotsDefault(data) {
  return request({
    url: prePath + '/depots/asAssetDefault',
    method: 'post',
    data,
  })
}

//获取资产默认仓库
export function getAssetDepotsDefault() {
  return request({
    url: prePath + '/depots/selectAssetDefault',
    method: 'get',
  })
}
//获取物资月结列表
export function getFiscalPeriodPage(data) {
  return request({
    url: prePath + '/coreFiscalPeriod/customizeList/page',
    method: 'post',
    data,
  })
}
//验证月结切换 type : 1 = 物资 2 = 资产
export function getCurrentFiscalPeriod(type) {
  return request({
    url: prePath + '/coreFiscalPeriod/getCurrentFiscalPeriod/' + type,
    method: 'get',
  })
}
//切换月结
export function changeFiscalPeriod(data) {
  return request({
    url: prePath + '/coreFiscalPeriod/changeFiscalPeriod',
    method: 'post',
    data,
  })
}
//资产月结
export function assetMonthClose(data) {
  return request({
    url: prePath + '/coreFiscalPeriod/assetMonthClose',
    method: 'post',
    data,
  })
}
//物资月结
export function materialMonthClose(data) {
  return request({
    url: prePath + '/coreFiscalPeriod/materialMonthClose',
    method: 'post',
    data,
  })
}
//分页查询
export function getCoreFiscalPeriodPage(params) {
  return request({
    url: prePath + '/coreFiscalPeriod/page',
    method: 'get',
    params,
  })
}
export function addByBatchBuildCard(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/addByBatchBuildCard',
    method: 'post',
    data,
  })
}
export function getAssetCostConfigAllByAsset(params) {
  return request({
    url: prePath + '/asset/analy/assetCostConfigDetail/allByAsset',
    method: 'get',
    params,
  })
}
export function checkBuildNumberForAssetCard(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/checkBuildNumber',
    method: 'post',
    data,
  })
}
export function checkBuildNumberForAssetCardAndSave(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/saveAndSubmitByBatchBuildCard',
    method: 'post',
    data,
  })
}
//产品添加供应商
export function productsRelationSupplier(data) {
  return request({
    url: prePath + '/products/relationSupplier',
    method: 'post',
    data,
  })
}
//产品删除供应商
export function productsRelationSupplierDel(data, id) {
  return request({
    url: prePath + '/products/relationSupplierDel/' + id,
    method: 'delete',
    data,
  })
}
//产品删除供应商
export function supplierProductsUpdateBatchListByPost(data) {
  return request({
    url: prePath + '/supplierProducts/updateBatchList/byPost/',
    method: 'post',
    data,
  })
}
//仓库全部
export function getDepotsSelectAllAndMaintenanceGroup(params) {
  return request({
    url: prePath + '/depots/selectAllAndMaintenanceGroup',
    method: 'get',
    params,
  })
}
//仓库分页
export function getDepotsSelectPageAndMaintenanceGroup(params) {
  return request({
    url: prePath + '/depots/selectPageAndMaintenanceGroup',
    method: 'get',
    params,
  })
}
//部门全部
export function getDeptsSelectAllAndMaintenanceGroup(params) {
  return request({
    url: prePath + '/depts/selectAllAndMaintenanceGroup',
    method: 'get',
    params,
  })
}
//部门分页
export function getDeptsSelectPageAndMaintenanceGroup(params) {
  return request({
    url: prePath + '/depts/selectPageAndMaintenanceGroup',
    method: 'get',
    params,
  })
}
// 资产分类
export function getCategoryLevelInfo(params) {
  return request({
    url: prePath + '/productCategory/getCategoryLevelInfo',
    method: 'get',
    params,
  })
}
// 部门层级
export function getDeptLevelInfo(params) {
  return request({
    url: prePath + '/depts/getDeptLevelInfo',
    method: 'get',
    params,
  })
}

/** 部门分类*/
export function getDeptClassificationTree(params) {
  return request({
    url: prePath + '/dept/classification/tree',
    method: 'get',
    params,
  })
}
// 新增部门分类
export function addDeptClassification(data) {
  return request({
    url: prePath + '/dept/classification',
    method: 'post',
    data,
  })
}
// 更新部门分类
export function updateDeptClassification(data) {
  return request({
    url: prePath + '/dept/classification',
    method: 'put',
    data,
  })
}
// 删除部门分类
export function deleteDeptClassificationByIds(data) {
  return request({
    url: prePath + '/dept/classification',
    method: 'delete',
    data,
  })
}
// 导出部门分类
export function exportDeptClassification(params) {
  return request({
    url: prePath + '/dept/classification/excel',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
//弹出框分页查询部门分类
export function getDeptClassificationPage(params) {
  return request({
    url: prePath + '/dept/classification/page',
    method: 'get',
    params,
  })
}
export function getBrandCheckDifference(data) {
  return request({
    url: prePath + '/brandCheck/difference',
    method: 'post',
    data,
  })
}
export function getCoreProductCheckDifference(data) {
  return request({
    url: prePath + '/coreProductCheck/difference',
    method: 'post',
    data,
  })
}
export function getLicenseCheckDifference(data) {
  return request({
    url: prePath + '/licenseCheck/difference',
    method: 'post',
    data,
  })
}
//打印二维码
export function printQrCodeReprint(data) {
  return request({
    url: prePath + '/printQrCode/reprint',
    method: 'post',
    data,
  })
}
//组织架构跟新资源
export function resourcesUpdateList(data) {
  return request({
    url: prePath + '/resources/updateList',
    method: 'post',
    data,
  })
}
export function selectDeptProduct(data) {
  return request({
    url: prePath + '/depts/selectDeptProduct',
    method: 'post',
    data,
  })
}

// 证照管理 修改页面 解除关联产品
export function deleteRelationProduct(data, id) {
  return request({
    url: prePath + '/licenses/relationProduct/' + id,
    method: 'delete',
    data,
  })
}

// 资产卡片删除子组件
export function assetCardDeleteChildren(id) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/deleteRelationAsset/' + id,
    method: 'delete',
  })
}
// 资产卡片获取子卡片
export function getAssetCardRelationCard(params) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/relationCard/',
    method: 'get',
    params,
  })
}

// 资产拆分
export function assetCardSplitCard(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/splitCard',
    method: 'post',
    data,
  })
}
// 批量修改
export function assetCardBatchUpdateAttribute(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/batchUpdateAttribute',
    method: 'post',
    data,
  })
}

//药品分页
export function getDrugCustomizeList(data) {
  return request({
    url: prePath + '/drug/customizeList/page',
    method: 'post',
    data,
  })
}

//根据id获取一条药品
export function getDrugById(id) {
  return request({
    url: prePath + '/drug/' + id,
    method: 'get',
  })
}

//药品修改
export function updateDrug(data) {
  return request({
    url: prePath + '/drug/byPost',
    method: 'post',
    data,
  })
}
// 领用申请添加购物车
export function addApplicationCart(data) {
  return request({
    url: prePath + '/shoppingCart',
    method: 'post',
    data,
  })
}
// 购物车下单
export function shoppingCartPlaceOrder(data) {
  return request({
    url: prePath + '/shoppingCart/placeOrder',
    method: 'post',
    data,
  })
}
// 货物购物车列表
export function getShoppingCartAll(data) {
  return request({
    url: prePath + '/shoppingCart/all',
    method: 'post',
    data,
  })
}
// 购物车更新
export function shoppingCartByPostr(data) {
  return request({
    url: prePath + '/shoppingCart/byPost',
    method: 'post',
    data,
  })
}
// 购物车删除
export function delShoppingCart(id) {
  return request({
    url: prePath + '/shoppingCart/' + id,
    method: 'delete',
  })
}
// 购物车货物条数
export function getShoppingCartCount() {
  return request({
    url: prePath + '/shoppingCart/getCount',
    method: 'get',
  })
}

//反月结
export function coreFiscalPeriodAssetRollbackCheck() {
  return request({
    url: prePath + '/coreFiscalPeriod/assetRollbackCheck',
    method: 'get',
  })
}
export function coreFiscalPeriodAssetRollbackClose() {
  return request({
    url: prePath + '/coreFiscalPeriod/assetRollbackClose',
    method: 'get',
  })
}
//查询办理数据
export function getScheduleTaskSelectByUserId(data) {
  return request({
    url: prePath + '/scheduleTask/selectByUserId',
    method: 'post',
    data,
  })
}
//查询办理数据
export function getScheduleTaskSelectDateCount(data) {
  return request({
    url: prePath + '/scheduleTask/selectDateCount',
    method: 'post',
    data,
  })
}
//获取全部待办
export function getScheduleTaskList(data) {
  return request({
    url: prePath + '/scheduleTask/selectToDo',
    method: 'post',
    data,
  })
}
//日程任务分类-列表
export function getScheduleTaskTypePage(params) {
  return request({
    url: prePath + '/scheduleTaskType/page',
    method: 'get',
    params,
  })
}
//日程任务分类-新增
export function postScheduleTaskType(data) {
  return request({
    url: prePath + '/scheduleTaskType',
    method: 'post',
    data,
  })
}
//日程任务分类-开启
export function enableScheduleTaskType(data) {
  return request({
    url: prePath + '/scheduleTaskType/enable',
    method: 'post',
    data,
  })
}
//日程任务分类-关闭
export function disableScheduleTaskType(data) {
  return request({
    url: prePath + '/scheduleTaskType/disable',
    method: 'post',
    data,
  })
}
//日程任务分类-编辑
export function putScheduleTaskType(data) {
  return request({
    url: prePath + '/scheduleTaskType',
    method: 'put',
    data,
  })
}
//日程任务分类-删除
export function delScheduleTaskType(data) {
  return request({
    url: prePath + '/scheduleTaskType',
    method: 'delete',
    data,
  })
}
//日程任务分类-单条详情
export function getScheduleTaskTypeById(id) {
  return request({
    url: prePath + '/scheduleTaskType/' + id,
    method: 'get',
  })
}
//日程任务分类-可用对象变量
export function getScheduleTaskTypeField(data) {
  return request({
    url: prePath + '/scheduleTaskType/getField',
    method: 'post',
    data,
  })
}
//资产卡片汇总
export function getAssetCardSumAmountFind(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/sumAmountFind',
    method: 'post',
    data,
  })
}
//部门产品导出
export function productsDepotExportExcel(params) {
  return request({
    url: prePath + '/products/depts/excelExport',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
// 中标产品对照start
// 中标与非中标对照页面-分页查询
export function winNonBiddingMappingPage(params) {
  return request({
    url: prePath + '/products/winNonBiddingMapping/page',
    method: 'get',
    params,
  })
}
// 中标或者非中标选择列表-分页查询
export function winOrNonBiddingPage(params) {
  return request({
    url: prePath + '/products/winOrNonBidding/page',
    method: 'get',
    params,
  })
}
// 中标或者非中标选择列表-分页查询弹窗过滤
export function notMappingProduct(params) {
  return request({
    url: prePath + '/products/notMappingProduct/page',
    method: 'get',
    params,
  })
}
// 新增产品中标与非中标对照信息
export function postWinNonBiddingMapping(data) {
  return request({
    url: prePath + '/products/winNonBiddingMapping',
    method: 'post',
    data,
  })
}
// 编辑产品中标与非中标对照信息
export function putWinNonBiddingMapping(data) {
  return request({
    url: prePath + '/products/winNonBiddingMapping',
    method: 'put',
    data,
  })
}
export function getAssetCardCustomizeListSumAmount(data) {
  return request({
    url: prePath + '/asset/assetManage/assetCard/customizeSum',
    method: 'post',
    data,
  })
}
//部门导出
export function exportDets(params) {
  return request({
    url: prePath + '/depts/excel',
    method: 'get',
    params,
    responseType: 'blob',
  })
}